package ui.adapter;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.fy.fyzf.R;
import com.fy.fyzf.bean.DemanddetailBean;
import com.fy.fyzf.glideUtils.GlideUtils;

public class AllDemandAdapter extends BaseQuickAdapter<DemanddetailBean.OtherDetailsReleaseBean.ListBean, BaseViewHolder> {

    private int type;
    public AllDemandAdapter() {
        super(R.layout.item_all_recommend);
    }

    @Override
    protected void convert(BaseViewHolder helper, DemanddetailBean.OtherDetailsReleaseBean.ListBean item) {

        GlideUtils.loadCircleImage(item.getUserPortrait(),helper.getView(R.id.iv_head));
        helper.setText(R.id.tv_name, item.getUserName())
                .setText(R.id.tv_company, item.getCompanyName())
                .setText(R.id.tv_time, item.getCreateTime());

    }
}
